﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using Repository;
using WZVTC.SoftDev.DDDFW.Domain.Core;
using WZVTC.SoftDev.DDDFW.EntityServices;
using WZVTC.SoftDev.DDDFW.Domain.Specification;

namespace EntityServices
{
    public class 目录Services:BaseServices<目录>
    {
        public 目录Services(IUnitOfWork _context,目录Repository _Repository):base(_context,_Repository)
        { }
        public 目录 GetById(int id)
        {
            ISpecification<目录> sp = new DirectSpecification<目录>(x => x.Id == id);
            return base.GetByCondition(sp);
        }
    }
}
